{template Public:Admin:header}

<h3> <a href="/task/{echo $draft['id']}" target="_blank">{echo $draft['subject']}</a></h3>
<h3>稿件ID {echo $draft['oid']}</h3>
<form  action="/admin/task/orderedit/id/{echo $draft['oid']}"  data-bv-feedbackicons-validating="glyphicon glyphicon-refresh" data-bv-feedbackicons-invalid="glyphicon glyphicon-remove" data-bv-feedbackicons-valid="glyphicon glyphicon-ok" data-bv-message="值不能为空" class="form-horizontal bv-form" method="post" id="TaskOrderForm" novalidate>
{if $task['task_mode']==2}

<div class="row">
    <div class="col-md-6">
         <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right">报价 (元)</label>
            <div class="col-sm-10">
                 <input type="text" class="form-control" placeholder="请输入您的报价" id="OrderOffer" name="offer" maxlength="5">
            </div>
        </div>
        <div class="horizontal-space"></div>
    </div>
    <div class="col-md-6">
        <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right">时间 (天)</label>
            <div class="col-sm-10">
                 <input type="text" class="form-control" placeholder="请输入您的工作时间" id="OrderTime" name="time" maxlength="2">
            </div>
        </div>
        <div class="horizontal-space"></div>
    </div>
</div>
                                                    
{/if}
                                                    
 {template Public:Page:umeditor}
<textarea id="Content"  name="content"  style="height:500px;width:100%">{echo $draft['content']}</textarea>
  
  <div class="col-pt-10">
    <button class="btn btn-success" type="submit">投 稿</button>
  </div>
  <input type="hidden" name="datatype" value="json"/>
  <input type="hidden" name="Submit" value="true"/>
  <input type="hidden" name="id" value="{echo $id}"/>
  <input type="hidden" name="oid" value="{echo intval($oid)}"/>

</form>



<!--Page Related Scripts-->
<script src="{echo AURL}/js/validation/bootstrapValidator.js"></script>

<script>
{if $task['task_mode']==2}
var taskmode=2;
{else}
var taskmode=1;
{/if}
$(document).ready(function () {
	
	 var um = UM.getEditor('Content');
	 
	 um.addListener("contentChange",function(){
		if(UM.getEditor('Content').hasContents()){
			$('#TaskOrderForm button[type="submit"]').attr('disabled',false);
		}
	 });

});
	 
</script>
    
{template Public:Admin:footer}